/**
 * Alipay.com Inc. Copyright (c) 2004-2018 All Rights Reserved.
 */
package com.yeyks.model;

import java.util.Date;
import java.util.Set;

/**
 *
 * @author Beacon
 * @version $Id: RoomBookingRules.java, v 0.1 2018年08月26日 15:41 Beacon Exp $
 */
public class RoomBookingRules {
    public static final Integer EveryDay = 1, ByDay = 2, ByWeekDay = 3, ByMonth = 4;

    /**
     * 预定规则类型
     */
    private Integer rule = EveryDay; // 默认每天都可以预定

    /**
     * 按日期有效：那么此处是有效日期的起止
     */
    private Date byDayStart = null, byDayEnd = null;

    /**
     * 按星期有效与按月有效：那么此处是有效的星期N或有效的第N月
     */
    private Set<Integer> weekMonth = null;

    public Integer getRule() {
        return rule;
    }

    public void setRule(Integer rule) {
        this.rule = rule;
    }

    public Date getByDayStart() {
        return byDayStart;
    }

    public void setByDayStart(Date byDayStart) {
        this.byDayStart = byDayStart;
    }

    public Date getByDayEnd() {
        return byDayEnd;
    }

    public void setByDayEnd(Date byDayEnd) {
        this.byDayEnd = byDayEnd;
    }

    public Set<Integer> getWeekMonth() {
        return weekMonth;
    }

    public void setWeekMonth(Set<Integer> weekMonth) {
        this.weekMonth = weekMonth;
    }
}